function clickIt(){
    window.alert('Button is clicked!');
}

var button=document.getElementById("#button");

button.addEventListener('click',clickIt);